package elicecn.codegen;

import java.io.IOException;
import java.sql.SQLException;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import freemarker.template.TemplateException;

public class CodeGen {

	// zlinfo/WuDGUEy5@zlinfo
	public static void main(String[] args) throws SQLException, IOException,
			TemplateException {
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"elicecn/codegen/spring.xml");
		CodeGenerator git = (CodeGenerator) ctx.getBean("GenerateCode");
		git.init();
		git.setSqlmapFolder("dao");
		git.buildCodes("com.bonc.u116114","com.bonc.base", "D:/codegen2", false);
		System.out.println("DONE!");
	}
}
